﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Hermes.Web.Address
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int ID=(Convert.ToInt32(strid));
					ShowInfo(ID);
				}
			}
		}
		
	private void ShowInfo(int ID)
	{
		Hermes.BLL.Address bll=new Hermes.BLL.Address();
		Hermes.Model.Address model=bll.GetModel(ID);
		this.lblID.Text=model.ID.ToString();
		this.lblContact.Text=model.Contact;
		this.lblCompany.Text=model.Company;
		this.lblStreet.Text=model.Street;
		this.lblDistrict.Text=model.District;
		this.lblCity.Text=model.City;
		this.lblProvince.Text=model.Province;
		this.lblPostcode.Text=model.Postcode;
		this.lblCountry.Text=model.Country;
		this.lblEmail.Text=model.Email;
		this.lblMobile.Text=model.Mobile;
		this.lblPhone.Text=model.Phone;
		this.lblLastUpdate.Text=model.LastUpdate.ToString();
		this.lblType.Text=model.Type.ToString();

	}


    }
}
